import request from '@/utils/request'

// 查询订单退款记录列表
export function listOrderRefund(query) {
  return request({
    url: '/order/orderRefund/list',
    method: 'get',
    params: query
  })
}

// 查询订单退款记录详细
export function getOrderRefund(id) {
  return request({
    url: '/order/orderRefund/' + id,
    method: 'get'
  })
}

// 新增订单退款记录
export function addOrderRefund(data) {
  return request({
    url: '/order/orderRefund',
    method: 'post',
    data: data
  })
}

// 修改订单退款记录
export function updateOrderRefund(data) {
  return request({
    url: '/order/orderRefund',
    method: 'put',
    data: data
  })
}

// 删除订单退款记录
export function delOrderRefund(id) {
  return request({
    url: '/order/orderRefund/' + id,
    method: 'delete'
  })
}

// 导出订单退款记录
export function exportOrderRefund(query) {
  return request({
    url: '/order/orderRefund/export',
    method: 'get',
    params: query
  })
}
